package com.zyl.pts.service;

import com.github.pagehelper.PageInfo;
import com.zyl.pts.config.enums.CodeAndMessageEnum;
import com.zyl.pts.domain.bean.QuarantineRegistration;
import com.zyl.pts.domain.dto.QRDTO.QRUpdateOrAddDTO;

import java.util.List;

/**
 * @version v1.0
 * @ProjectName: product_source
 * @Package: com.zyl.pts.service
 * @ClassName: QuarantineRegistrationService
 * @Description TODO(检疫业务层)
 * @Author 翟玉龙
 * @Date 2024/11/19-14:13
 */
public interface QRService {


    /**
     * 根据条件查询检疫信息
     * @param bQualified 是否合格
     * @param grMechanism 检疫机构
     * @param pageNum Page number
     * @param pageSize Page size
     * @return {@link PageInfo }<{@link QuarantineRegistration }>
     */
    PageInfo<QuarantineRegistration> queryQuarantineRegistration(String bQualified, String grMechanism, Integer pageNum, Integer pageSize);

    /**
     * 更新或者新增检疫记录
     * @param qrUpdateOrAdd qrUpdateOrAdd
     */
    CodeAndMessageEnum addOrUpdate(QRUpdateOrAddDTO qrUpdateOrAdd);

    /**
     * 根据id删除检疫记录
     * @param id 检疫id
     * @return {@link CodeAndMessageEnum }
     */
    CodeAndMessageEnum deleteById(Integer id);

    /**
     * 根据id列表批量删除检疫记录
     * @param ids id列表
     * @return {@link CodeAndMessageEnum }
     */
    CodeAndMessageEnum deleteByIdAll(List<Integer> ids);
}
